package dao;

import java.sql.SQLException;
import java.util.List;

import entity.Role;

public interface RoleDao {
	List<Role> getList(int offset, int limit, String condition, String order) throws SQLException;
	int getListCount(String condition) throws SQLException;
	Role getRoleById(String roleId) throws SQLException;
	List<Role> getRoleList() throws SQLException;
	int addRole(Role role) throws SQLException;
	int deleteRoleById(String id) throws SQLException;
	int editRole(Role role) throws SQLException;
}
